001    /*
002     * Copyright 2005 Stephen J. McConnell.
003     *
004     * Licensed  under the  Apache License,  Version 2.0  (the "License");
005     * you may not use  this file  except in  compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *   http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed  under the  License is distributed on an "AS IS" BASIS,
012     * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
013     * implied.
014     *
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    
019    package net.dpml.transit.model;
020    
021    import java.util.EventListener;
022    import java.rmi.Remote;
023    import java.rmi.RemoteException;
024    
025    /** 
026     * The HostListener is an interface implmented by resource host
027     * implementation.  The interface declares host change notification
028     * methods that is invoked by a host model following one or more changes 
029     * to the host configuration.
030     *
031     * @author <a href="http://www.dpml.net">Digital Product Meta Library</a>
032     * @version 1.0.1
033     */
034    public interface HostListener extends EventListener, Remote
035    {
036       /**
037        * Notify a consumer of the change to the host name.
038        * @param event the host name change event
039        * @exception RemoteException if a remote exception occurs
040        */
041        void nameChanged( HostNameEvent event ) throws RemoteException;
042    
043       /**
044        * Notify a consumer of an aggregated set of changes concerning the 
045        * base url, index, request identifier and/or authentication.
046        * @param event the host change event
047        * @exception RemoteException if a remote exception occurs
048        */
049        void hostChanged( HostChangeEvent event ) throws RemoteException;
050    
051       /**
052        * Notify a consumer of a change to the host priority.
053        * @param event the host priority event
054        * @exception RemoteException if a remote exception occurs
055        */
056        void priorityChanged( HostPriorityEvent event ) throws RemoteException;
057    
058       /**
059        * Notify a consumer of a change to the host layout.
060        * @param event the host layout change event
061        * @exception RemoteException if a remote exception occurs
062        */
063        void layoutChanged( HostLayoutEvent event ) throws RemoteException;
064    
065    }
066